package com.xueyi.system.sysCity.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xueyi.common.core.web.entity.base.SubTreeEntity;
import com.xueyi.common.core.web.entity.base.TreeEntity;
import com.xueyi.system.sysCity.domain.dto.SysCityDto;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;

/**
 * 行政区划 持久化对象
 *
 * @author xueyi
 */
@TableName(value = "sys_city", excludeProperty = {"createBy","updateBy","remark","delFlag","status"})
public class SysCityPo extends TreeEntity<SysCityDto> {

    private static final long serialVersionUID = 1L;

    /** 编号 */
@TableId("id")
private Long id;

    /** 父级编号 */
@Excel(name = "父级编号")
@TableField("pid")
private Long parentId;


 /** 父级编号 */
@Excel(name = "父级编号")
@TableField(exist = false)
private Long parentCode;


    /** 城市级别：1省 2市 3区 */
@Excel(name = "城市级别：1省 2市 3区")
@TableField("level")
private Integer level;

    /** 城市编号（区号） */
@Excel(name = "城市编号", readConverterExp = "区=号")
@TableField("citycode")
private String citycode;

    /** 地理编号 */
@Excel(name = "地理编号")
@TableField("adcode")
private String adcode;

    /** 城市坐标中心点经度（* 1e6）：如果是中国，此值是 1e7 */
@Excel(name = "城市坐标中心点经度", readConverterExp = "*=,1=e6")
@TableField("lng")
private Integer lng;

    /** 城市坐标中心点纬度（* 1e6） */
@Excel(name = "城市坐标中心点纬度", readConverterExp = "*=,1=e6")
@TableField("lat")
private Integer lat;

    /** 添加人 */
@Excel(name = "添加人")
@TableField("create_user")
private Integer createUser;

    /** 更新人 */
@Excel(name = "更新人")
@TableField("update_user")
private Integer updateUser;

    /** 有效标记 */
@Excel(name = "有效标记")
@TableField("mark")
private Integer mark;

@Override
public void setId(Long id) {
    this.id = id;
}

@Override
public Long getId() {
    return id;
}

@Override
public void setParentId(Long parentId) {
    this.parentId = parentId;
}

@Override
public Long getParentId() {
    return parentId;
}

public void setLevel(Integer level) {
    this.level = level;
}

public Integer getLevel() {
    return level;
}

public void setCitycode(String citycode) {
    this.citycode = citycode;
}

public String getCitycode() {
    return citycode;
}

public void setAdcode(String adcode) {
    this.adcode = adcode;
}

public String getAdcode() {
    return adcode;
}

public void setLng(Integer lng) {
    this.lng = lng;
}

public Integer getLng() {
    return lng;
}

public void setLat(Integer lat) {
    this.lat = lat;
}

public Integer getLat() {
    return lat;
}

public void setCreateUser(Integer createUser) {
    this.createUser = createUser;
}

public Integer getCreateUser() {
    return createUser;
}

public void setUpdateUser(Integer updateUser) {
    this.updateUser = updateUser;
}

public Integer getUpdateUser() {
    return updateUser;
}

public void setMark(Integer mark) {
    this.mark = mark;
}

public Integer getMark() {
    return mark;
}

public Long getParentCode() {
    return parentCode;
}

public void setParentCode(Long parentCode) {
    this.parentCode = parentCode;
}
}
